﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using CMSApplication.Models;
using System.Collections.Concurrent;

namespace CMSApplication.DataDictionaries
{
    static class Cache
    {
        private static ConcurrentDictionary<string, ResourceModel> resourceCache;
        private static ConcurrentDictionary<string, Site> siteCache;
        private static ConcurrentDictionary<string, Content> contentCache;
        private static ConcurrentDictionary<string, CMSApplication.Models.Version> versionCache;
        
        /*Read-Only Properties*/
        public static ConcurrentDictionary<string, ResourceModel> ResourceCache
        {
            get { return resourceCache; }
        }

        public static ConcurrentDictionary<string, Site> SiteCache
        {
            get { return siteCache; }
        }

        public static ConcurrentDictionary<string, Content> ContentCache
        {
            get { return contentCache; }
        }

        public static ConcurrentDictionary<string, CMSApplication.Models.Version> VersionCache
        {
            get { return versionCache; }
        }

        //public static string SearchResource(string name)
        //{

        //}
    }
}